package com.imc.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.imc.bo.StaffBo;
import com.imc.dao.StaffDao;
import com.imc.domain.Staff;

@Service("staffBo")
public class StaffBoImpl implements StaffBo {

	@Autowired
	StaffDao staffDao;

	public void setStaffDao(StaffDao staffDao) {
		this.staffDao = staffDao;
	}

	public void delete(Staff staff) {
		staffDao.delete(staff);

	}

	public Staff findByStaffId(long staffId) {
		return staffDao.findByStaffId(staffId);
	}

	public void save(Staff staff) {
		staffDao.save(staff);

	}

	public void update(Staff staff) {
		staffDao.update(staff);

	}

}
